﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WaterBill.DTO
{
    class DTO_Bills
    {
        #region "Bien toan cuc"
        private int _BillId;
        private string _BillNumber;
        private int _CustomerId;
        private int _ChargeId;
        private int _OldIndex;
        private int _NewIndex;
        private int _UsedIndex;
        private decimal _TotalPrice;
        private int _UserId;
        private int _Status;
        #endregion
        #region "Thuoc tinh"
        public int BillId
        {
            get { return _BillId; }
            set { _BillId = value; }
        }
        public string BillNumber
        {
            get { return _BillNumber; }
            set { _BillNumber = value; }
        }
        public int CustomerId
        {
            get { return _CustomerId; }
            set { _CustomerId = value; }
        }
        public int ChargeId
        {
            get { return _ChargeId; }
            set { _ChargeId = value; }
        }
        public int OldIndex
        {
            get { return _OldIndex; }
            set { _OldIndex = value; }
        }
        public int NewIndex
        {
            get { return _NewIndex; }
            set { _NewIndex = value; }
        }
        public int UsedIndex
        {
            get { return _UsedIndex; }
            set { _UsedIndex = value; }
        }
        public decimal TotalPrice
        {
            get { return _TotalPrice; }
            set { _TotalPrice = value; }
        }
        public int UserId
        {
            get { return _UserId; }
            set { _UserId = value; }
        }
        public int Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        #endregion
        #region "Phuong thuc"
        public DTO_Bills()
        {
            _BillId = 0;
            _BillNumber = string.Empty;
            _CustomerId = 0;
            _ChargeId = 0;
            _OldIndex = 0;
            _NewIndex = 0;
            _UsedIndex = 0;
            _TotalPrice = 0;
            _UserId = 0;
            _Status = 1;
        }
        public DTO_Bills(DTO_Bills obj)
        {
            this.BillId = obj.BillId;
            this.BillNumber = obj.BillNumber;
            this.CustomerId = obj.CustomerId;
            this.ChargeId = obj.ChargeId;
            this.OldIndex = obj.OldIndex;
            this.NewIndex = obj.NewIndex;
            this.UsedIndex = obj.UsedIndex;
            this.TotalPrice = obj.TotalPrice;
            this.UserId = obj.UserId;
            this.Status = obj.Status;
        }
        public DTO_Bills(int BillId, string BillNumber, int CustomerId, int ChargeId, int OldIndex, int NewIndex, int UsedIndex, decimal TotalPrice, int UserId, int Status)
        {
            this.BillId = BillId;
            this.BillNumber = BillNumber;
            this.CustomerId = CustomerId;
            this.ChargeId = ChargeId;
            this.OldIndex = OldIndex;
            this.NewIndex = NewIndex;
            this.UsedIndex = UsedIndex;
            this.TotalPrice = TotalPrice;
            this.UserId = UserId;
            this.Status = Status;
        }
        #endregion
    }
}
